wayland: Schedule a clock tick instead of wl_surface_commit()ting directly
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 4 Nov 2014 18:26:25 +0000 (19:26 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 7 Nov 2014 16:24:10 +0000 (17:24 +0100)
commitaf6eab850ebea0394d35402f4ac9eb286e9eb835
tree4aa8ec1b5ab3ee9497bcae03c6bd845e10482350
parent964abf74235caa5cbeab64e845c4b35ac340b860
wayland: Schedule a clock tick instead of wl_surface_commit()ting directly

Instead of possibly calling wl_surface_commit() out of
GdkFrameClock::after-paint, tick the transient parent clock so ::after-paint
can be eventually run.

This ensures that the subsurface coordinates (considered part of the state
of the parent) aren't committed untimely, and guaranteed to be orderly with
the wl_subsurface-relative state.

This is a gtk-side fix for https://bugzilla.gnome.org/show_bug.cgi?id=738887
gdk/wayland/gdkwindow-wayland.c